-- GENERATED SPELL FOR [Spiritwalker Tara] --


function spell0_33332(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(61924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33332', 2500, 1)
end

function spell1_33332(pUnit, Event) --@Storm Cloud,n/a--
pUnit:FullCastSpellOnTarget(65133,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33332', 32000, 1)
end

function Sorts_33332(pUnit, Event)
local choix_sorts_33332 = math.random(0, 1)
if choix_sorts_33332 == 0 then
pUnit:RegisterEvent('spell0_33332', 1, 1)
end
if choix_sorts_33332 == 1 then
pUnit:RegisterEvent('spell1_33332', 1, 1)
end
end

function mob33332_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33332', math.random(1500, 3000), 1)
end

function mob33332_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33332_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33332_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33332, 1, 'mob33332_Action')
RegisterUnitEvent(33332, 2, 'mob33332_Leave')
RegisterUnitEvent(33332, 3, 'mob33332_Kill')
RegisterUnitEvent(33332, 4, 'mob33332_Die')
